package com.jsoft.service.impl;

import com.jsoft.dao.UserEnterpriseDao;
import com.jsoft.dao.impl.UserEnterpriseDaoImpl;
import com.jsoft.entity.User;
import com.jsoft.entity.po.UserEnterprise;
import com.jsoft.service.UserEnterpriseService;

/**
 * @author snkstart
 * @create 2023-02-21 14:01
 */
public class UserEnterpriseServiceImpl implements UserEnterpriseService {

    private UserEnterpriseDao userEnterpriseDao=new UserEnterpriseDaoImpl();
    @Override
    public UserEnterprise setAccountAndId(String userAccount){
        UserEnterprise userEnterprise=null;
        try {
            userEnterprise = userEnterpriseDao.selectEnterpriseByUser(userAccount);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return userEnterprise;
    }
}
